/*********************************************************************************
  *FileName:  nsuc16xx_dwdg.h
  *Version:   V1.0
  *Date:      2024-03-22
**********************************************************************************/

#ifndef  __nsuc16xx_dwdg_H__
#define  __nsuc16xx_dwdg_H__

/***************************************Includes***********************************/
#include "nsuc16x0.h"


/***************************************Macros***********************************/
#define DWDG_RELOAD_KEY 0xAAAA

#define DWDG_Prescaler_4        ((uint8_t)0x00)
#define DWDG_Prescaler_8        ((uint8_t)0x01)
#define DWDG_Prescaler_16       ((uint8_t)0x02)
#define DWDG_Prescaler_32       ((uint8_t)0x03)
#define DWDG_Prescaler_64       ((uint8_t)0x04)
#define DWDG_Prescaler_128      ((uint8_t)0x05)
#define DWDG_Prescaler_256      ((uint8_t)0x06)
#define DWDG_Prescaler_512      ((uint8_t)0x07)


/***************************************Variables***********************************/



/***************************************Functions***********************************/
void DWDG_Disable(void);
void DWDG_Enable(void);
void DWDG_SetReloadKey(void);
void DWDG_SetPrescaler(uint8_t DWDG_Prescaler);
void DWDG_SetReloadValue(uint16_t value);
uint16_t DWDG_GetCounter(void);


#endif
/* [] END OF nsuc16xx_dwdg.h */
